package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.User;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author tg.si@188.com
 * @todo
 * @since 2024/4/13 8:15
 */
public interface UserDao {
    void login(Connection connection, User user) throws SQLException;
    User find(Connection connection, Integer id) throws SQLException, BaseException, InvocationTargetException;

    boolean update(Connection connection, User user) throws SQLException;

    int add(Connection connection, User user) throws SQLException;
}
